home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / os2 / edm0407s.zip / STAT3SRC.ZIP / ABOUT.CPP next >
C/C++ Source or Header  |  1996-07-25  |  968b  |  29 lines

  1. #include <os2.h>
  2.  
  3. #include "about.hpp"
  4. #include "statline.rch"
  5.  
  6. //**************************************************************************
  7. // AAbout :: AAbout - Constructor for about dialog window                  *
  8. //**************************************************************************
  9. AAbout :: AAbout (IWindow * ownerWnd)
  10.                   : IFrameWindow (DLG_ABOUT, ownerWnd)
  11. {
  12.   ICommandHandler :: handleEventsFor (this); //Set self as command event handler
  13. }
  14.  
  15. //**************************************************************************
  16. // AAbout :: command - Process Commands                                    *
  17. //**************************************************************************
  18. Boolean AAbout :: command (ICommandEvent& evt)
  19. {
  20.   if(evt. commandId () == DID_OK)  // close the windows?
  21.      {                             // yes
  22.       close();
  23.       dismiss(DID_OK);
  24.       return (true);
  25.      }
  26.  
  27.   return (false);
  28. }
  29.